package co.com.inventarios.modelo;

public class UnimedWork {
	
	private Unimed unimedw;
	private String estado = "X";
	private boolean selected;
	
	/**
	 * @return the Unimed
	 */
	public Unimed getUnimedw() {
		return unimedw;
	}
	/**
	 * @param requidoc the Unimed to set
	 */
	public void setUnimedw(Unimed unimedw) {
		this.unimedw = unimedw;
	}
	/**
	 * @return the selected
	 */
	public boolean isSelected() {
		return selected;
	}
	/**
	 * @param selected the selected to set
	 */
	public void setSelected(boolean selected) {
		this.selected = selected;
	}
	
	public String getEstado() {
		if (unimedw.getUmdactivo().intValue()==Integer.valueOf(1)){
			estado = "Activo";
		}else{
			estado = "Inactivo";
		}
		return estado;
	}
	
	
	public void setEstado(String estado) {
		this.estado = estado;
	}
		


}
